package com.skyline.jfs.namespace.dao;

import java.util.List;

import com.skyline.jfs.namespace.model.JFSDirectory;

public interface JFSDirectoryDao {

	public List<JFSDirectory> findAllSubDirsById(Long id);

	public JFSDirectory findDirByDir(String dir);
	
	public JFSDirectory findDirByID(Long id);

	public void insertDir(String dir);
	
	public void insertDir(Long parent, String path, String name,
			Integer permission);

	public void deleteDir(Long id);

	public void deleteDir(String dir);

	public void updateName(Long id, String newName);

	public void updateName(String dir, String newName);

	public void updatePermission(Long id, Integer newPermission);

	public void updatePermission(String dir, Integer newPermission);
}
